//
//  FunnyDetailViewController.m
//  Zaker
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FunnyDetailViewController.h"

@interface FunnyDetailViewController ()

@end

@implementation FunnyDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIWebView *webVC = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 50)];
    webVC.backgroundColor = [UIColor whiteColor];
    webVC.scrollView.bounces = NO;
    [self.view addSubview:webVC];
    //webView适应
    webVC.scalesPageToFit = YES;
    
    [webVC loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_model.weburl]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
